package com.tg.service.base.contextandfactory;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class A2 implements InitializingBean {

    private static final Logger LOGGER = LoggerFactory.getLogger(A2.class);

    @Autowired
    private B2 b2;

    public A2() {
        LOGGER.info("construct:A2");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        LOGGER.info("init:A2");
    }
}
